portability layer for LIMIT emulation
